<h1>Listing lessons</h1>

<table>
  <tr>
    <th>Applied at</th>
    <th>Title</th>
    <th>Description</th>
    <th>Course</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @lessons.each do |lesson| %>
  <tr>
    <td><%= lesson.applied_at %></td>
    <td><%= lesson.title %></td>
    <td><%= lesson.description %></td>
    <td><%= lesson.course.name %></td>
    <td><%= link_to 'Show', lesson %></td>
    <td><%= link_to 'Edit', edit_lesson_path(lesson) %></td>
    <td><%= link_to 'Destroy', lesson, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Lesson', new_lesson_path %>
